#pragma once

#include "stdafx.h"
#include "bullet.h"
#include "player.h"

class bulletManager
{
public:
	static bulletManager* Instance();
	void updata();
	void draw();
	void clear();
	/*void add(Bullet* b);*/
	void add(stdBullet lib, Point p, Point* player);
	void add(stdBullet lib, Point p, Point* player, int i);
	void add(stdBullet lib, Point p, Point* player, int i, int effect, Point *round);
	void checkHit(Player& p);
protected:
	bulletManager();
private:
	static bulletManager* _instance;
	list<Bullet*> manager;
	list<Bullet*> freeMem;
	int num;
};